<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<title>发布新活动</title>
<jsp:include page="../addlinkform.jsp" />

<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/statics/css/activity.css"
	rel="stylesheet">

</head>
<body>
	<jsp:include page="../headform.jsp" />

	<div class="container-fluid all">
		<div class="maincontent">
			<div class="maincontent-header">
				<div class="back-btn">&lt;返回</div>
				<div class="header-title">发布新消息</div>
				<div class="null"></div>
			</div>
			<div class="mode form_mode">

					<div class="form-group row">
						<label class="col-sm-3 control-label">标题名称</label>
						<div class="col-sm-9 control-label">
							<input type="text" placeholder="请输入广告标题"
								class="form-control input-theme" name="title" value="">
							<div class="input-label-tips"></div>
						</div>
					</div>
					
					<div class="form-group row">
						<label class="col-sm-3 control-label">宣传图片</label>
						<div class="col-sm-9">
							<div class="img-input">
								<div class="previewimg" id="previewimg">
								<img class='ChangePreviewPic PreviewPic' id="ChangePreviewPic" style="display:none;"/>
								<canvas id="ChangePreviewCanvas" width="800" height="450" style="display:none;">
									您的浏览器不支持 HTML5 canvas 标签。
								</canvas>
								</div>
								<div class="img-txt">
									<div class="img-tips">上传图片尺寸为800*450像素</div>
									<div class="uploadpic btn">图片上传</div>
									<input id="fileupload" type="file" name="file" multiple
										style="display: none;" onchange="setFile()"
										accept="image/gif,image/jpeg,image/jpg,image/png,image/svg" />
									<div class="input-label-tips"></div>
								</div>
							</div>
						</div>
					</div>

					<div class="form-group row">
						<label class="col-sm-3 control-label">关联地址</label>
						<div class="col-sm-9 control-label">
							<div class="chose-bar"><span class="chose-button active" data-value="1">活动</span><span class="chose-button" data-value="2">商品</span><span class="chose-button" data-value="3">商家</span><span class="chose-button" data-value="4">外部链接</span></div>
							<input type="text" placeholder="请输入活动编号ID" class="form-control input-ID" name="id" value="">
							<div class="input-label-tips"></div>
						</div>
					</div>
				<div class="form-group">
					<div class="col-sm-9  col-sm-offset-3 button-bar">
						<span class="btn btn-save" id="save">保存</span>
					</div>
				</div>
			</div>
		</div>
	</div>






	<script	src="${pageContext.request.contextPath}/statics/js/activityManager/newAdvert.js"></script>

	<jsp:include page="../foot.jsp" />

</body>
</html>
